package com.huawei.secure.android.common.util;

class LogsUtil$a extends Throwable {
    private static final long serialVersionUID = 7129050843360571879L;
    private String m;
    private Throwable n;
    private Throwable o;

    public LogsUtil$a(Throwable th) {
        this.o = th;
    }

    public Throwable getCause() {
        return this.n == this ? null : this.n;
    }

    public void b(Throwable th) {
        this.n = th;
    }

    public String getMessage() {
        return this.m;
    }

    public void setMessage(String str) {
        this.m = str;
    }

    public String toString() {
        if (this.o == null) {
            return "";
        }
        String name = this.o.getClass().getName();
        if (this.m == null) {
            return name;
        }
        name = name + ": ";
        if (this.m.startsWith(name)) {
            return this.m;
        }
        return name + this.m;
    }
}
